﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace WpfApplication1.Models
{
    class NotificationModel
    {
        string _id;
        string _fromid;
        string _toid;
        string _titletext;
        string _link;
        string _time;
        bool _isUnread;

        public string Title
        {
            get { return _titletext; }
            set { _titletext = value; }
        }

        public string Time
        {
            get { return _time; }
            set { _time = value; }
        }

        public string FromId
        {
            get { return _fromid; }
            set { _fromid = value; }
        }

        public bool IsUnread
        {
            get { return _isUnread; }
            set { _isUnread = value; }
        }

        public string Link
        {
            get { return _link; }
        }

        public string ToId
        {
            get { return _toid; }
        }

        public NotificationModel(string id, string fromid, string toid, string titletext, string link, string time, bool isUnread)
        {
            _id = id;
            _fromid = fromid;
            _toid = toid;
            _titletext = titletext;
            _link = link;
            _time = time;
            _isUnread = isUnread;
        }
    }
}
